package month4.day5.computer;

public class IntelCPU implements CPU{
    private String brand;
    private double Frequency;
    @Override
    public void work() {
        System.out.println("cpu工作，处理数据");
    }

    @Override
    public String toString() {
        return "这个CPU品牌是" + brand +
                ", 主频是" + Frequency+"GHz";
    }

    public IntelCPU(String brand, double frequency) {
        this.brand = brand;
        Frequency = frequency;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getFrequency() {
        return Frequency;
    }

    public void setFrequency(double frequency) {
        Frequency = frequency;
    }
}
